package gov.child.service;

import gov.child.entities.vo.Department;
import gov.child.entities.vo.Page;
import gov.child.entities.vo.PersonalDeclareForm;
import gov.child.entities.vo.User;

import java.util.List;

/**
 * @author fzh
 * @since 2017/9/14
 */
public interface PersonalDeclareFormService extends Pageable {
    PersonalDeclareForm findById(Integer id);
    PersonalDeclareForm findByUnicode(String code);
    List findByUser(User user);
    List findByDepartment(Department department, Page page);
    List findByDepartmentAndStatus(Department department, byte status, Page page);
    boolean save(PersonalDeclareForm personalDeclareForm);
    boolean update(PersonalDeclareForm personalDeclareForm);
    boolean delete(PersonalDeclareForm personalDeclareForm);
}
